<div>
	<table id='settings' border="1">
		<tr><th>标题</th><th>发送者</th><th>接收者</th><th>发送日期</th><th>查看日期</th></tr>
		<?php foreach ($messages as $message): ?>
			<tr>
				<td><?php echo $message['Message']['title'] ?></td>
				<td><?php echo $linker->userManageLink($message['Sender']) ?></td>
				<td><?php echo $linker->userManageLink($message['User']) ?></td>
				<td><?php echo $message['Message']['created'] ?></td>
				<td><?php echo $message['Message']['updated'] ?></td>
			</tr>
		<?php endforeach ?>
	</table>
</div>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
|
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>